﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.CompanyListModels>" %>
<div class="bor_cor">
<div class="city_hd">
   <h4><span>Doanh nghiệp BĐS ở các tỉnh/thành lớn</span></h4> 
</div>
<div class="line" style="border-bottom: 1px solid #999; margin-top:0px"></div>
<div class="city_list">
    <ul>
    <%int index = 0;
        foreach (var item in Model.Cities)
      {
          index += 1;
          if (index == 13) break;
          var path = string.Format("/company/directories/{0}/{1}/{2}",
                     Model.CompanyTypeID,
                     item.ID,
                     Model.DistrictID);
          var css =Model.CityID == item.ID ? "act" : string.Empty;
          if (Model.Keyword != null && Model.Keyword != string.Empty) path = path + "?key=" + Model.Keyword;
          %>
      <li><a href="<%=path %>" class="<%=css %>"><%=Html.Encode(item.Name) %></a></li>
    <%} %>
    </ul>
</div>
</div>
<div class="clear"></div>